<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>易优名品</title>
    <link rel="stylesheet" href="__LayUI__/css/layui.css">
    <link rel="stylesheet" href="__Admin__/css/admin.scss">
</head>
<body class="layui-layout-body">
<div class="layui-layout layui-layout-admin">
   {include file="layout/head" /}

    {include file="layout/sidebar" /}

    <div class="layui-body">
        <!-- 内容主体区域 -->
        <div id="mainContain">
            <div class="layui-row">
                <a href="{:url('conf/add')}">新增配置</a>   
            </div>
            <table class="layui-table">
                <colgroup>
                  <col width="150">
                  <col width="200">
                  <col>
                </colgroup>
                <thead>
                  <tr>
                    <th>ID</th>
                    <th>排序</th>
                    <th>中文名</th>
                    <th>英文名</th>
                    <th>配置类型</th>
                    <th>配置值</th>
                    <th>操作</th>
                  </tr> 
                </thead>
                <tbody>
               
                  {volist name="res" id="conf"}
                    <tr>
                        <td>{$conf.id}</td>
                        <td><input class="layui-input" value={$conf.sort}></td>
                        <td>{$conf.cnname}</td>
                        <td>{$conf.enname}</td>
                        <td>
                            {if condition="$conf['type'] eq 1"}
                            单行文本
                            {elseif condition="$conf['type'] eq 2"}
                            多行文本
                            {elseif condition="$conf['type'] eq 3"}
                            单选按钮
                            {elseif condition="$conf['type'] eq 4"}
                            下拉菜单

                            {/if}
                            
                        </td>
                        <td>{$conf.value}</td>
                        <td>
                            <a href="{:url('edit',array('id'=>$conf['id']))}">修改</a>
                            <a href="{:url('del',array('id'=>$conf['id']))}">删除</a>
                
                        </td>
                    </tr>
                  {/volist}
                </tbody>
             </table>
            <nav>
              {$res->render()}
            </nav>
        </div>
    </div>

    {include file="layout/footer" /}

</div>
<script src="__LayUI__/layui.js"></script>
<script>
    layui.use('element', function(){       
});
</script>
</body>
</html>